package com.ruoyi.activiti.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 历史流程对象 ACT_HI_PROCINST
 *
 * @author ruoyi
 * @date 2019-11-27
 */
public class ActHiProcinst
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 流程实例ID */
    @Excel(name = "流程实例ID")
    private String procInstId;

    /** 业务主键 */
    @Excel(name = "业务主键")
    private String businessKey;

    /** 流程定义ID */
    @Excel(name = "流程定义ID")
    private String procDefId;

    /** 开始时间 */
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 耗时 */
    @Excel(name = "耗时")
    private Long duration;

    /** 发起人 */
    @Excel(name = "发起人")
    private String startUserId;

    /** 开始节点ID */
    @Excel(name = "开始节点ID")
    private String startActId;

    /** 结束节点ID */
    @Excel(name = "结束节点ID")
    private String endActId;

    /** 父流程实例ID */
    @Excel(name = "父流程实例ID")
    private String superProcessInstanceId;

    /** 删除原因 */
    @Excel(name = "删除原因")
    private String deleteReason;

    /** $column.columnComment */
    @Excel(name = "删除原因")
    private String tenantId;

    /** $column.columnComment */
    @Excel(name = "删除原因")
    private String name;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setProcInstId(String procInstId)
    {
        this.procInstId = procInstId;
    }

    public String getProcInstId()
    {
        return procInstId;
    }
    public void setBusinessKey(String businessKey)
    {
        this.businessKey = businessKey;
    }

    public String getBusinessKey()
    {
        return businessKey;
    }
    public void setProcDefId(String procDefId)
    {
        this.procDefId = procDefId;
    }

    public String getProcDefId()
    {
        return procDefId;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setDuration(Long duration)
    {
        this.duration = duration;
    }

    public Long getDuration()
    {
        return duration;
    }
    public void setStartUserId(String startUserId)
    {
        this.startUserId = startUserId;
    }

    public String getStartUserId()
    {
        return startUserId;
    }
    public void setStartActId(String startActId)
    {
        this.startActId = startActId;
    }

    public String getStartActId()
    {
        return startActId;
    }
    public void setEndActId(String endActId)
    {
        this.endActId = endActId;
    }

    public String getEndActId()
    {
        return endActId;
    }
    public void setSuperProcessInstanceId(String superProcessInstanceId)
    {
        this.superProcessInstanceId = superProcessInstanceId;
    }

    public String getSuperProcessInstanceId()
    {
        return superProcessInstanceId;
    }
    public void setDeleteReason(String deleteReason)
    {
        this.deleteReason = deleteReason;
    }

    public String getDeleteReason()
    {
        return deleteReason;
    }
    public void setTenantId(String tenantId)
    {
        this.tenantId = tenantId;
    }

    public String getTenantId()
    {
        return tenantId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("procInstId", getProcInstId())
            .append("businessKey", getBusinessKey())
            .append("procDefId", getProcDefId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("duration", getDuration())
            .append("startUserId", getStartUserId())
            .append("startActId", getStartActId())
            .append("endActId", getEndActId())
            .append("superProcessInstanceId", getSuperProcessInstanceId())
            .append("deleteReason", getDeleteReason())
            .append("tenantId", getTenantId())
            .append("name", getName())
            .toString();
    }
}
